package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderSettingMapper {




    /*
    * 根据日期修改可预约人数
     */
    void updataNumberByOrderDate(OrderSetting orderSetting);



    /**
     * 新增预约数据
     * @param orderSetting
     */
    void addNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 查询数据是否存在
     * @param orderDate
     * @return
     */
    Long findCountByOrderDate(Date orderDate);


    /*
     * 根据日期查询预约设置
     */
    List<OrderSetting>  getOrderSettingByMonth(Date beginDate, Date endDate);
//    List<OrderSetting> getOrderSettingByMonth(Date mouth);


}
